import {Entity, PrimaryColumn, Column, Long,PrimaryGeneratedColumn,OneToOne,JoinColumn} from "typeorm";
import {UserInfoEntity} from './UserInfoEntity'
@Entity("user")
export class UserEntity{
    @PrimaryGeneratedColumn()
    user_Id!: number;

	@Column()
    user_PassWord!: string;

    @Column()
    user_Phone!: string;

    @Column()
    user_LoginStatus!: number;

    @Column({length:500})
    user_HeadImg!: string;

    @Column()
    user_NickName!: string;

    @Column()
    user_Fans!: number;

    @Column()
    user_Follows!: number;

    @Column()
    userUserInfoUserInfoId!:number;

    @OneToOne(()=>UserInfoEntity)
    @JoinColumn()
    user_UserInfo!:UserInfoEntity;

    @Column()
    isFollow:boolean = false;

}